class Room :
    def __init__(self,name) -> None:
        self.__name = name
    def print_name (self) :
        print(f"房间名{self.__name}")
r1 = Room("房间1")
r1.print_name()

r2 = Room("房间2")
name = r2._Room__name
print(name)